package cn.fangline.base.util;

/**
 * Created by shann on 17/3/16.
 */
public class LogicUtil {

    /**
     * obj是null或false的时候，返回false，否则返回true
     * */
    public static boolean isReal(Object obj){
        if(obj instanceof Boolean){
            System.out.println("boolean instance");
            return (Boolean)obj;
        }
        if(obj == null){
            return false;
        }
        return true;
    }
}
